<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'livsmedel-form',
	'enableAjaxValidation'=>false,
)); ?>

<?php echo $form->errorSummary($model); ?>

	<div class="row">
	<?php echo $form->labelEx($model,'livsmedelsnamn'); ?>
	<?php echo $form->textField($model,'livsmedelsnamn',array('size'=>60,'maxlength'=>100)); ?>
	<?php echo $form->error($model,'livsmedelsnamn'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'kj'); ?>
	<?php echo $form->textField($model,'kj',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'kj'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'kcal'); ?>
	<?php echo $form->textField($model,'kcal',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'kcal'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'protein'); ?>
	<?php echo $form->textField($model,'protein',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'protein'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'fett'); ?>
	<?php echo $form->textField($model,'fett',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'fett'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'kolhydrater'); ?>
	<?php echo $form->textField($model,'kolhydrater',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'kolhydrater'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'fibrer'); ?>
	<?php echo $form->textField($model,'fibrer',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'fibrer'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'salt'); ?>
	<?php echo $form->textField($model,'salt',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'salt'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'aska'); ?>
	<?php echo $form->textField($model,'aska',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'aska'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'vatten'); ?>
	<?php echo $form->textField($model,'vatten',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'vatten'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'alkohol'); ?>
	<?php echo $form->textField($model,'alkohol',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'alkohol'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'monosackarider'); ?>
	<?php echo $form->textField($model,'monosackarider',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'monosackarider'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'disackarider'); ?>
	<?php echo $form->textField($model,'disackarider',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'disackarider'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'sackaros'); ?>
	<?php echo $form->textField($model,'sackaros',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'sackaros'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'fullkorn_totalt'); ?>
	<?php echo $form->textField($model,'fullkorn_totalt',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'fullkorn_totalt'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'summa_mattade_fettsyror'); ?>
	<?php echo $form->textField($model,'summa_mattade_fettsyror',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'summa_mattade_fettsyror'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'summa_enkelomattade_fettsyror'); ?>
	<?php echo $form->textField($model,'summa_enkelomattade_fettsyror',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'summa_enkelomattade_fettsyror'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'summa_fleromattade_fettsyror'); ?>
	<?php echo $form->textField($model,'summa_fleromattade_fettsyror',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'summa_fleromattade_fettsyror'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'fettsyra'); ?>
	<?php echo $form->textField($model,'fettsyra',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'fettsyra'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'ePA'); ?>
	<?php echo $form->textField($model,'ePA',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'ePA'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'dPA'); ?>
	<?php echo $form->textField($model,'dPA',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'dPA'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'dHA'); ?>
	<?php echo $form->textField($model,'dHA',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'dHA'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'summa_transfettsyror'); ?>
	<?php echo $form->textField($model,'summa_transfettsyror',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'summa_transfettsyror'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'kolesterol'); ?>
	<?php echo $form->textField($model,'kolesterol',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'kolesterol'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'retinolekvivalenter'); ?>
	<?php echo $form->textField($model,'retinolekvivalenter',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'retinolekvivalenter'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'retinol'); ?>
	<?php echo $form->textField($model,'retinol',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'retinol'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'vitamin_D'); ?>
	<?php echo $form->textField($model,'vitamin_D',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'vitamin_D'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'vitamin_E'); ?>
	<?php echo $form->textField($model,'vitamin_E',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'vitamin_E'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'vitamin_K'); ?>
	<?php echo $form->textField($model,'vitamin_K',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'vitamin_K'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'tiamin'); ?>
	<?php echo $form->textField($model,'tiamin',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'tiamin'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'riboflavin'); ?>
	<?php echo $form->textField($model,'riboflavin',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'riboflavin'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'vitamin_C'); ?>
	<?php echo $form->textField($model,'vitamin_C',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'vitamin_C'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'niacin'); ?>
	<?php echo $form->textField($model,'niacin',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'niacin'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'niacinekvivalenter'); ?>
	<?php echo $form->textField($model,'niacinekvivalenter',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'niacinekvivalenter'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'vitamin_B6'); ?>
	<?php echo $form->textField($model,'vitamin_B6',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'vitamin_B6'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'vitamin_B12'); ?>
	<?php echo $form->textField($model,'vitamin_B12',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'vitamin_B12'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'fosfor'); ?>
	<?php echo $form->textField($model,'fosfor',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'fosfor'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'folat'); ?>
	<?php echo $form->textField($model,'folat',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'folat'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'jod'); ?>
	<?php echo $form->textField($model,'jod',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'jod'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'jarn'); ?>
	<?php echo $form->textField($model,'jarn',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'jarn'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'kalcium'); ?>
	<?php echo $form->textField($model,'kalcium',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'kalcium'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'kalium'); ?>
	<?php echo $form->textField($model,'kalium',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'kalium'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'magnesium'); ?>
	<?php echo $form->textField($model,'magnesium',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'magnesium'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'natrium'); ?>
	<?php echo $form->textField($model,'natrium',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'natrium'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'selen'); ?>
	<?php echo $form->textField($model,'selen',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'selen'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'zink'); ?>
	<?php echo $form->textField($model,'zink',array('size'=>6,'maxlength'=>6)); ?>
	<?php echo $form->error($model,'zink'); ?>
	</div>

	<div class="row buttons">
	<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

	<?php $this->endWidget(); ?>

</div>
<!-- form -->
